
<link rel="stylesheet" href="__PUBLIC__css/challenge.css?v={$edition}">
<div class="content-wrapper">
	<h1>{$data.course_name}</h1>
	<div class="challenge">
		<div class="illustrate">
			{$data.document}
		</div>
		<!-- <div class="prompt">
			不会做了？<a href="#" target="_blank">复习相关视频/文档</a>
		</div> -->
		<div class="editor">
			<textarea id="editor" style="width:100%; height:460px;" name="content"></textarea>
		</div>
		<div class="submit"><a>提交挑战</a></div>
		<div class="record">
			<div class="title">
				<h3>挑战记录</h3>
			</div>
			{if $data.training}
			<div class="layui-collapse" lay-accordion>
				{foreach $data.training as $t}
				<div class="layui-colla-item">
					<div class="layui-colla-title">{$t.time}{$t.grade|returnTrain=###}</div>
					<div class="layui-colla-content layui-show">
						{$t.content}
						{if $t.grade}<div class="comment">
							<h5>老师点评：</h5>
							<p>{$t.id|returnAdminTrain=###}</p>
						</div>{/if}
					</div>
				</div>
				{/foreach}
			</div>
			{else}
			<div class="none">还没有提交过一次挑战</div> 
			{/if}
		</div>
	</div>
	{include file="course/next"}
</div>
<script type="text/javascript" src="__PUBLIC__js/challenge.js"></script>
<script type="text/javascript" src="__PUBLIC__js/practice.js"></script>